package operation;

import Book.Book;
import Book.BookList;

/**
 * Created with IntelliJ IDEA
 * Description
 * User:华为
 * Date:2024/10/18
 * Time:21:12
 */
public class ShowOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        int currentsize = bookList.getUsedSize();
        for (int i = 0; i < currentsize; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
